package com.cn.jdia.tas.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.tas.dao.S_worklogMapper;
import com.cn.jdia.tas.model.S_worklog;
import com.cn.jdia.tas.service.IWorklogService;

@Service("worklogService")
public class IWorklogServiceImpl implements IWorklogService {

	@Resource
	private S_worklogMapper worklogDao;
	
	@Override
	public int insertWorkLog(S_worklog worklog) {
		return this.worklogDao.insertSelective(worklog);
	}

	@Override
	public List<S_worklog> getTopWorkLogByEmployeeId(String employeeId) {
		return this.worklogDao.queryTopLog(employeeId);
	}

	@Override
	public List<S_worklog> getDateWorkLogByEmployeeId(String employeeId, String begDate, String endDate) {
		return this.worklogDao.queryDateLog(employeeId, begDate, endDate);
	}



}
